package com.cn.kehong.api;

import com.cn.kehong.domain.SysItem;
import com.cn.kehong.utils.QueryForm;

import java.util.List;
import java.util.Map;

public interface ISysItemService {

    List<SysItem> getMgItemList(QueryForm queryForm)throws Exception;

    List<SysItem> getMgItemSelect(QueryForm queryForm)throws Exception;

    List<SysItem> getMgItemByType(String type)throws Exception;

    List<SysItem> getAllMgItemList()throws Exception;


    List<SysItem> getConcatUsers()throws Exception;

    Map<String,String> getMgItemNameMap(QueryForm queryForm)throws Exception;

    String addMgItemDetail(SysItem mgItem) throws Exception;

    String getMgItemDefaultValue(SysItem mgItem) throws Exception;

    int countMgItemByName(String name, String type, String id) throws Exception;

    int countMgItemByCode(String name, String type, String id) throws Exception;

    String updateMgItemDetail(SysItem mgItem) throws Exception;

    String updateMgItemCodeDetail(SysItem mgItem) throws Exception;

    String updateMgItemValue(SysItem mgItem) throws Exception;

    String deleteMgItemDetail(QueryForm queryForm) throws Exception;

    SysItem getSysItemInfoById(String id)throws Exception;

    String addSysItemByNotRepeat(SysItem mgItem)throws Exception;

    List<SysItem> getMgItemSelectByType(String type)throws Exception;

    Map<String, List<SysItem>> getCategoryMap() throws Exception;

    String addMgItemCodeDetail(SysItem mgItem) throws Exception;

    List<SysItem> getDeviceList() throws Exception;

    List<SysItem> getDeviceWorkshopList(String factory);

    Map<String, List<SysItem>> getWorkshopMap() throws Exception;

    String getReferenceByWorkshop(String workshop)throws Exception;

    String updateWorkshopDetail(SysItem mgItem)throws Exception;

    int countMgItemByName1(String name,String alias, String type, String id) throws Exception;

    String getReferenceByWorkshopLine(String workshop, String lineBody)throws Exception;

    String addMgItemBasicDetail(SysItem mgItem)throws Exception;

    String updateMgItemBasicDetail(SysItem mgItem)throws Exception;

    String getReferenceByWorkshopBasic(String workshop,String type)throws Exception;

    String addRawMaterial(List<SysItem> sysItems)throws Exception;

    String updateRawMaterial(SysItem sysItem)throws Exception;

    String addProduct(SysItem mgItem)throws Exception;

    String updateProduct(SysItem sysItem)throws Exception;

    String addWorkshopDetail(SysItem mgItem)throws Exception;

    List<SysItem> getMaterialCode()throws Exception;

    List<SysItem> getMaterialTitle()throws Exception;

    List<SysItem> getMgItemListFactoryName(QueryForm queryForm)throws Exception;
}
